export tag=v1.1
root:
	export ROOT=gitee.com/zsjlovewm/go-work

build:
	echo "building httpserver binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .

build-win:
	echo "building httpserver binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/amd64 .


release: build
	echo "building httpserver container"
	docker build -t robotzsj/httpserver:${tag} .

push: release
	echo "pushing robotzsj/httpserver"
	docker push robotzsj/httpserver:v1.0
